package net.uzen.office.article.model;

import java.util.List;

import net.uzen.office.attached.model.Attached;
import net.uzen.office.common.model.Base;

import org.springframework.web.multipart.MultipartFile;

public class Article extends Base {
	private int articleNo;
	private int boardNo;
	private int parentArticleNo;
	private int articleOrder;
	private int thread;
	private String title;
	private String content;
	private String noticeFlag;
	private String answerFlag;
	private String dueDate;
	private String startDate;
	private String endDate;
	private String mode;
	private MultipartFile attachedFile;
	private String attachedFilename;
	private String attachedUrl;
	private String attachedLocation;

	private List<Attached> attachedList;

	public String getAttachedUrl() {
		return attachedUrl;
	}

	public String getAttachedFilename() {
		return attachedFilename;
	}

	public void setAttachedFilename(String attachedFilename) {
		this.attachedFilename = attachedFilename;
	}

	public void setAttachedUrl(String attachedUrl) {
		this.attachedUrl = attachedUrl;
	}

	public String getAttachedLocation() {
		return attachedLocation;
	}

	public void setAttachedLocation(String attachedLocation) {
		this.attachedLocation = attachedLocation;
	}

	public MultipartFile getAttachedFile() {
		return attachedFile;
	}

	public void setAttachedFile(MultipartFile attachedFile) {
		this.attachedFile = attachedFile;
	}

	public String getMode() {
		return mode;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}

	public Article() {
		this.isAuthorized = true;
		this.articleOrder = 1;
	}

	public boolean isAuthorized() {
		return isAuthorized;
	}

	public void setAuthorized(boolean isAuthorized) {
		this.isAuthorized = isAuthorized;
	}

	public int getArticleNo() {
		return articleNo;
	}

	public void setArticleNo(int articleNo) {
		this.articleNo = articleNo;
	}

	public int getBoardNo() {
		return boardNo;
	}

	public void setBoardNo(int boardNo) {
		this.boardNo = boardNo;
	}

	public int getParentArticleNo() {
		return parentArticleNo;
	}

	public void setParentArticleNo(int parentArticleNo) {
		this.parentArticleNo = parentArticleNo;
	}

	public int getArticleOrder() {
		return articleOrder;
	}

	public void setArticleOrder(int articleOrder) {
		this.articleOrder = articleOrder;
	}

	public int getThread() {
		return thread;
	}

	public void setThread(int thread) {
		this.thread = thread;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getNoticeFlag() {
		return noticeFlag;
	}

	public void setNoticeFlag(String noticeFlag) {
		this.noticeFlag = noticeFlag;
	}

	public String getAnswerFlag() {
		return answerFlag;
	}

	public void setAnswerFlag(String answerFlag) {
		this.answerFlag = answerFlag;
	}

	public String getDueDate() {
		return dueDate;
	}

	public void setDueDate(String dueDate) {
		this.dueDate = dueDate;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public List<Attached> getAttachedList() {
		return attachedList;
	}

	public void setAttachedList(List<Attached> attachedList) {
		this.attachedList = attachedList;
	}

	@Override
	public String toString() {
		return "Article [answerFlag=" + answerFlag + ", articleNo=" + articleNo
				+ ", articleOrder=" + articleOrder + ", boardNo=" + boardNo
				+ ", content=" + content + ", dueDate=" + dueDate
				+ ", endDate=" + endDate + ", noticeFlag=" + noticeFlag
				+ ", parentArticleNo=" + parentArticleNo + ", startDate="
				+ startDate + ", thread=" + thread + ", title=" + title + "]";
	}

}
